/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2024-05-22
 * Time: 21:19
 */
public class Test2 {
    public static void main1(String[] args) {
        //"hi new classmate"是一个String类型对象
        System.out.println("hi new classmate");
        //"hi new classmate"是String类型对象的话,可以调用String类中的方法
        System.out.println("hi new classmate".length());
    }

    public static void main(String[] args) {
        String s1 = new String("hi");
        String s2 = new String("lou");
        String s3 = s2;

        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s3);
    }
}
